package guiElements;

import java.awt.Color;
import java.awt.Dimension;
import java.awt.Font;
import java.awt.Point;

import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextField;

public class NameSearchPanel extends JPanel {
	
	private JTextField nameTextField;
	
	public NameSearchPanel() {
		setLayout(null);
		setBackground(Color.white);
		JLabel nameLabel = new JLabel("Fabric Name:");
		nameLabel.setSize(new Dimension(125,25));
		nameLabel.setLocation(new Point(0, 0));
		nameLabel.setFont(new Font("Georgia", Font.BOLD, 16));
		add(nameLabel);
		
		nameTextField = new JTextField();
		nameTextField.setColumns(40);
		nameTextField.setSize(new Dimension(225,25));
		nameTextField.setLocation(new Point(125,0));
		add(nameTextField);
	}

	public JTextField getNameTextField() {
		return nameTextField;
	}

	public void setNameTextField(JTextField nameTextField) {
		this.nameTextField = nameTextField;
	}

	public void reset() {
		nameTextField.setText(null);
	}

}
